﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoreShop.Model
{

    /// <summary>
    /// 抖音类
    /// </summary>
    public class TiktokPostModel
    {
        /// <summary>
        /// 
        /// </summary>
        public string error_code { get; set; } 


        /// <summary>
        /// 
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string verify_token { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string order_id { get; set; }

        public List<CertificateModel> certificates { get; set; }
    }


    /// <summary>
    /// 抖音类
    /// </summary>
    public class CertificateModel
    {
        /// <summary>
        /// 
        /// </summary>
        public string encrypted_code { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public long expire_time { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public SkuModel sku { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public AmountModel amount { get; set; }
    }


    /// <summary>
    /// 抖音类
    /// </summary>
    public class SkuModel
    {
        /// <summary>
        /// 
        /// </summary>
        public string sku_id { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int groupon_type { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public decimal market_price { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public long sold_start_time { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string account_id { get; set; }

        /// <summary>
        /// 抖音-商家平台券ID
        /// </summary>
        public string third_sku_id { get; set; }        

    }

    /// <summary>
    /// 抖音类
    /// </summary>
    public class AmountModel
    {
        /// <summary>
        /// 
        /// </summary>
        public decimal original_amount { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public decimal coupon_pay_amount { get; set; }
    }

    /// <summary>
    /// 抖音类
    /// </summary>
    public class VerifyResultModel
    {
        /// <summary>
        /// 
        /// </summary>
        public int result { get; set; }


        public string msg { get; set; }

        public string code { get; set; }

        public string verify_id { get; set; }

        public string certificate_id { get; set; }

        public string origin_code { get; set; }

        public string account_id { get; set; }
        public string order_id { get; set; }
    }

}
